import { http, wxIp} from '../../Api/http'

// let ip =  commonIp + '/logistics';
let ip =  wxIp + '/bcxt';

//小程序账号 -- 分页列表
export function postBcxtWxUserInfoQuery(data) {
    const url = wxIp + '/bcxt/wxUser/info/query';
    return http(url, "post", data)
}
//小程序账号 -- 删除
export function deleteBcxtWxUserInfoDelete(data) {
    const url = wxIp + '/bcxt/wxUser/info/delete';
    return http(url, "delete", data)
}
//小程序角色下拉
export function getBcxtRoleBasicQuery(data) {
    const url = wxIp + '/bcxt/role/basic/query';
    return http(url, "get", data)
}
//验证码
export function getBcxtWxUserSmsSend(data) {
    const url = wxIp + '/bcxt/wxUser/sms/send';
    return http(url, "get", data)
}
//添加微信用户
export function putBcxtWxUserInfoCreate(data) {
    const url = wxIp + '/bcxt/wxUser/info/create';
    return http(url, "put", data)
}
//用户回显
export function getBcxtWxUserUpdateQuery(data) {
    const url = wxIp + '/bcxt/wxUser/update/query';
    return http(url, "get", data)
}
//修改微信用户
export function postBcxtWxUserInfoUpdate(data) {
    const url = wxIp + '/bcxt/wxUser/info/update';
    return http(url, "post", data)
}


// 报餐公告设置
export const  getLsMealHistorySetMealNotice = (data) => {
    const url = ip + '/ls-meal-history/setMealNotice';
    return http(url, "get", data)
}

//菜品列表
export const  postLsMealDishesFindLsMealDishes = (data) => {
    const url = ip + '/ls-meal-dishes/findLsMealDishes';
    return http(url, "post", data)
}

//菜品添加
export const  putLsMealDishesInsertLsMealDishes = (data) => {
    const url = ip + '/ls-meal-dishes/insertLsMealDishes';
    return http(url, "put", data)
}
//发布菜品添加
export const  getLsMealDishesRelease = (data) => {
    const url = ip + '/ls-meal-dishes/release';
    return http(url, "get", data)
}
//菜品信息回显
export const  getLsMealDishesEcho = (data) => {
    const url = ip + '/ls-meal-dishes/echo';
    return http(url, "get", data)
}
//菜品编辑
export const  postLsMealDishesUpdateLsMealDishes = (data) => {
    const url = ip + '/ls-meal-dishes/updateLsMealDishes';
    return http(url, "post", data)
}
//菜品删除
export const  getLsMealDishesDeleteLsMealDishes = (data) => {
    const url = ip + '/ls-meal-dishes/deleteLsMealDishes';
    return http(url, "get", data)
}
//报餐概览
export const  getLsMealHistoryOverviewGuard = (data) => {
    const url = ip + '/ls-meal-history/overviewGuard';
    return http(url, "get", data)
}
//报餐列表
export const  postLsMealHistoryFindLsMeal = (data) => {
    const url = ip + '/ls-meal-history/findLsMeal';
    return http(url, "post", data)
}
//报餐公告列表
export const  getLsMealHistoryGetMealNoticeHi = (data) => {
    const url = ip + '/ls-meal-history/getMealNoticeHi';
    return http(url, "get", data)
}
//报餐LOG列表
export const  getLsMealHistoryGetMealNoticeLogHi = (data) => {
    const url = ip + '/ls-meal-history/getMealNoticeLogHi';
    return http(url, "get", data)
}
//报餐公告发布
export const  getLsMealHistoryReleaseMealNotice = (data) => {
    const url = ip + '/ls-meal-history/releaseMealNotice';
    return http(url, "get", data)
}
//报餐公告删除 -- log 删除
export const  getLsMealHistoryRemoveMealNoticeHi = (data) => {
    const url = ip + '/ls-meal-history/removeMealNoticeHi';
    return http(url, "get", data)
}
//报餐log设置
export const  getLsMealHistorySetGuardLog = (data) => {
    const url = ip + '/ls-meal-history/setGuardLog';
    return http(url, "get", data)
}
//报餐log发布
export const  getLsMealHistoryReleaseMealNoticeLog = (data) => {
    const url = ip + '/ls-meal-history/releaseMealNoticeLog';
    return http(url, "get", data)
}
//报餐log发布取消 公告取消
export const  getLsMealHistoryCancelMealNoticeHi = (data) => {
    const url = ip + '/ls-meal-history/cancelMealNoticeHi';
    return http(url, "get", data)
}
//获取报餐时间限制
export const  getLsMealDishesGetSystemEnv = (data) => {
    const url = ip + '/ls-meal-dishes/getSystemEnv';
    return http(url, "get", data)
}
//设置报餐时间限制
export const  postLsMealDishesSetSystemEnv = (data) => {
    const url = ip + '/ls-meal-dishes/setSystemEnv';
    return http(url, "post", data)
}
//报餐统计
export const  getLsMealHistoryListOverview = (data) => {
    const url = ip + '/ls-meal-history/listOverview';
    return http(url, "get", data)
}

//上传 - 文件 （包括头像）
export function sysUploadUrl() {
    const url = wxIp + '/bcxt/oss/upload/oss';
    return url;
}













//白名单列表
export const  postLsCarWhiteFindLsCarWhite = (data) => {
    const url = ip + '/ls-car-white/findLsCarWhite';
    return http(url, "post", data)
}
//添加白名单
export const  putLsCarWhiteInsertLsCarWhite= (data) => {
    const url = ip + '/ls-car-white/insertLsCarWhite';
    return http(url, "put", data)
}
//白名单回显
export const  getLsCarWhiteEcho= (data) => {
    const url = ip + '/ls-car-white/echo';
    return http(url, "get", data)
}
//白名单编辑
export const  postLsCarWhiteUpdateLsCarWhite= (data) => {
    const url = ip + '/ls-car-white/updateLsCarWhite';
    return http(url, "post", data)
}
//白名单删除
export const  getLsCarWhiteDeleteLsCarWhite= (data) => {
    const url = ip + '/ls-car-white/deleteLsCarWhite';
    return http(url, "get", data)
}


//通行记录
export const  postLsCarPassageFindLsCarPassage= (data) => {
    const url = ip + '/ls-car-passage/findLsCarPassage';
    return http(url, "post", data)
}
//通行记录
export const  getLsCarPassageOverviewGuard= (data) => {
    const url = ip + '/ls-car-passage/overviewGuard';
    return http(url, "get", data)
}
//获取停车场全局设置
export const  getLsCarPassageGetGlobalGuard= (data) => {
    const url = ip + '/ls-car-passage/getGlobalGuard';
    return http(url, "get", data)
}
//停车场全局设置
export const  postLsCarPassageSetGlobalGuard= (data) => {
    const url = ip + '/ls-car-passage/setGlobalGuard';
    return http(url, "post", data)
}
